package com.probox.common.entity.domain.recharge;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 储值记录对象 recharge_record
 *
 * @author usoft
 * @date 2022-11-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("recharge_record")
public class RechargeRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 储值记录
     */
    //默认主键自增
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 储值ID
     */
    @Excel(name = "储值ID")
    private Long rechargeId;

    /**
     * 是否通用(1通用，0指定门店)
     */
    @Excel(name = "是否通用(1通用，0指定门店)")
    private Long isCommon;

    /**
     * 储值名称
     */
    @Excel(name = "储值名称")
    private String rechargeName;

    /**
     * 是否推荐
     */
    @Excel(name = "是否推荐")
    private String isRecommend;

    /**
     * 储值icon
     */
    @Excel(name = "储值icon")
    private String rechargeIcon;

    /**
     * 门店ID
     */
    @Excel(name = "门店ID")
    private Long storeId;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long memberId;

    /**
     * 储值金额
     */
    @Excel(name = "储值金额")
    private Long rechargeMoney;

    /**
     * 首充双倍(1是/0否)
     */
    @Excel(name = "首充双倍(1是/0否)")
    private String firstDouble;

    /**
     * 获得金币
     */
    @Excel(name = "获得金币")
    private Long goldCoin;

    /**
     * 获得银币
     */
    @Excel(name = "获得银币")
    private Long silverCoin;

    /**
     * 获得积分
     */
    @Excel(name = "获得积分")
    private Long score;

    /**
     * 储值项描述
     */
    @Excel(name = "储值项描述")
    private String rechargeDesc;

    /**
     * 数据状态（0-无效/1-有效）
     */
    @Excel(name = "数据状态", readConverterExp = "0=-无效/1-有效")
    private String dataStatus;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    private String updateName;


    @Excel(name = "会员等级")
    private Long memberLevel;


}
